<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-compInfo-edit" th:object="${compInfo}">
            <input id="compId" name="compId" th:field="*{compId}"  type="hidden">
            <div class="form-group">	
                <label class="col-sm-3 control-label">供应商编号：</label>
                <div class="col-sm-8">
                    <input id="compSn" name="compSn" th:field="*{compSn}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">供应商名称：</label>
                <div class="col-sm-8">
                    <input id="compNm" name="compNm" th:field="*{compNm}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">注册号：</label>
                <div class="col-sm-8">
                    <input id="compRegSn" name="compRegSn" th:field="*{compRegSn}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">统一社会信用代码：</label>
                <div class="col-sm-8">
                    <input id="compCredSn" name="compCredSn" th:field="*{compCredSn}" class="form-control" type="text">
                </div>
            </div>
		</form>
    </div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "pm/compInfo"
		$("#form-compInfo-edit").validate({
			rules:{
				xxxx:{
					required:true,
				},
			}
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/edit", $('#form-compInfo-edit').serialize());
	        }
	    }
	</script>
</body>
</html>
